<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
<!-- Loading Bootstrap -->
<link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
<!-- Loading Flat UI -->
<link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
<link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
<link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="dist/js/vendor/html5shiv.js"></script>
<script src="dist/js/vendor/respond.min.js"></script>
<![endif]-->
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
	<table class="table table-hover">
		<tr>
			<td>货品ID</td>
			{{foreach from="$data" value="$v"}}
			  	<td>{{$v['taname']}}</td>
			{{endforeach}}
			<td>库存</td>
			<td>货号</td>
			<td>操作</td>
		</tr>

		<tr>
			<td>编辑货品</td>
			{{foreach from="$data" value="$v"}}
			<td>
				<select name="combine[]">
					<option value="">请选择</option>
					{{foreach from="$v['value']" value="$value"}}
						<option value="{{$value['gtid']}}" {{if value="in_array($value['gtid'],explode('|',$oldData['combine']))"}}selected{{endif}}>{{$value['gtvalue']}}</option>
					{{endforeach}}
				</select>
			</td>
			{{endforeach}}
			<td><input type="text" name="inventory" id="" value="{{$oldData['inventory']}}"></td>
	        <td><input type="text" name="number" id="" value="{{$oldData['number']}}"></td>
	        <td>
	        	<input type="hidden" name="glid" value="{{$oldData['glid']}}" />
	        	<button class="btn btn-sm btn-warning">确认修改</button>
	        	<a href="{{U('GoodsList/index',array('gid'=>$_GET['gid']))}}" class="btn btn-sm btn-warning">返回上一级</a>
	        </td>
		</tr>
			
		</table>
	</form>
	</body>
</html>
